package com.baizhi.feign;

import com.baizhi.feign.fallback.TagFallBack;
import com.baizhi.po.TagPO;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@FeignClient(value = "TAG", fallback = TagFallBack.class)
public interface TagFeign {

    @GetMapping("/tags/{id}")
    public TagPO queryById(@PathVariable Long id);
}
